<?php

use EasySwoole\Log\LoggerInterface;

return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9501,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 8,
            'reload_async' => true,
            'max_wait_time' => 3,
            'document_root'=> EASYSWOOLE_ROOT . '/static'
        ],
        'TASK' => [
            'workerNum' => 4,
            'maxRunningNum' => 128,
            'timeout' => 15
        ]
    ],
    "LOG" => [
        'dir' => null,
        'level' => LoggerInterface::LOG_LEVEL_DEBUG,
        'handler' => null,
        'logConsole' => true,
        'displayConsole'=>true,
        'ignoreCategory' => []
    ],
    //redis信息
    "REDIS" => [
        'host' => "47.242.173.124",
        'port' => 6379,
        'auth' => 'PTbWxknSFhj4fLhM',
        'db' => 0,
        'serialize' => \EasySwoole\Redis\Config\RedisConfig::SERIALIZE_NONE
    ],
    //mysql连接
    "MYSQL" => [
        'host' => "47.242.173.124",
        'port' => 3306,
        'user' => 'tools',
        'password' => 'PTbWxknSFhj4fLhM',
        'database' => 'tools',
    ],
    //百度相关接口配置
    "BAIDU" => [
        'BAIDU_APPID' => "20190403000284174",
        'BAIDU_KEY' => 'piAjYe0AFFWkln0sd4Qq',
        'BAIDU_URL' => 'http://api.fanyi.baidu.com/api/trans/vip/translate',
    ],
    //阿里相关接口配置
    "ALI"=>[
        "API_ADD"=>"http://jisuzidian.market.alicloudapi.com/zidian/word?word=",
        'AppKey'=>"24222943",
        "AppSecret"=>"6106efa26c9a3560d9f506e07dad5c2d",
        "AppCode"=>"d679d3fc523944389573ddbc977c0dc3",
        'QUERY_PHONE'=>'https://cx.shouji.360.cn/phonearea.php?number=',
    ],
    //小程序信息
    "wechat"=>[
        'appid'=>"wx971ad16817351c5f",
        "mach_id"=>"1568307771",
        "pay_key"=>"c30243e53af1edb6dac92a7354187bd4",
        'secret'=>'6055dda5f6fa31dc845fb6f60e7c930f'
    ],
    "SecretKey"=>"tanbinghao",  //token密钥
    'TEMP_DIR' => null
];
